package com.yunpeng.aidevice.dao.mapper.record;


import com.yunpeng.aidevice.dao.mapper.IRecordMapper;
import com.yunpeng.aidevice.dao.model.record.MerchantNoticeMailDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商户通知邮箱设置 Mapper 接口
 * </p>
 *
 * @author hemw
 * @since 2020-05-04
 */
@Mapper
public interface MerchantNoticeMailMapper extends IRecordMapper<MerchantNoticeMailDO> {

    /**
     * 获取默认配置
     *
     * @param tenantCode 租户代码
     * @return
     */
    MerchantNoticeMailDO getDefaultMailConfig(@Param("tenantCode") String tenantCode);

    /**
     * 获取商户的发送邮箱配置
     *
     * @param merchantCode 商户代码
     * @param tenantCode   租户代码
     * @return
     */
    MerchantNoticeMailDO getMerchantMailConfig(@Param("merchantCode") String merchantCode, @Param("tenantCode") String tenantCode);

}
